﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace KSSModel
{
    public class UserCash
    {
        public string UserName { get; set; }
        public string Name { get; set; }
        public string Department { get; set; }
        public decimal Cash { get; set; }
        public DateTime CashDate { get; set; }
        public string DocID { get; set; }
    }
    public partial class tblDocSearch : tblDoc
    {
        public string CostSaving { get; set; }
    }
    public class TblKDoc : tblDoc
    {
        
    }
    public class TblKSection :tblSection
    {
        
    }
    public class ReportRy
    {
        public string sacnameTh { get; set; }
        public decimal? moneySave { get; set; }
        public decimal? CashThisMonth { get; set; }
        public decimal? moneySaveThisMonth { get; set; }
        public decimal? Cash { get; set; }
        public int? Doccount { get; set; }
        public int? EMPCount { get; set; }
        public int? DoccountThisMonth { get; set; }
        public int? EMPCountThisMonth { get; set; }
        public decimal? topicPerEmp
        {
            get
            {
                return Doccount / EMPCount;
            }
        }  
    }

    public class ReportRYTechno
    {
        public string MFacName { get; set; }
        public string MdepName { get; set; }
        public string SacnameTh { get; set; }
        public string MTitle { get; set; }
        public string MName { get; set; }
        public string MSurname { get; set; }
        public string Mstaffno { get; set; }
        public int? Doccount { get; set; }
        public int? Month { get; set; }
        public int? year { get; set; }
        public string TitleSummary { get; set; }
        public string MEmail { get; set; }

    }

    public class ReportSB
    {
       
        public string MFacName { get; set; }
        public string MdepName { get; set; }
        public string SacnameTh { get; set; }
        public string MName { get; set; }
        public string MSurname { get; set; }
        public string Mstaffno { get; set; }
        public int? Doccount { get; set; }
        public int? DoccountThisMonth { get; set; }
        public string TitleSummary { get; set; }
      
    }

    public struct cashGroupSB
    {
        public decimal price { get; set; }
        public int count { get; set; }
    }

    public struct cateGroupSB{
        public int CateItemId { get; set; }
        public string CateName { get; set; }
        public string CateItem { get; set; }
        public int count { get; set; }
        public bool isMonthly { get; set; }
    }

}
